include("shared.lua")
include("cl_HUD.lua")
include("cl_menu.lua")

DSA_INIT = false

DSA_SHW_MENU = false
DSA_SHW_SPECIAL_HUD = true

DSA_STR_NEWS = "Loading data from server..."
DSA_CLR_NEWS = Color(255, 255, 255, 255)

DSA_STR_RANK = "Waiting for the server..."
DSA_CLR_RANK = Color(200, 200, 200, 255)


function DSA_Initialize()
	hook.Add("HUDPaint", "DSA_RenderHUD", DSA_RenderHUD)
	hook.Add("HUDShouldDraw", "DSA_ShouwDrawHud", DSA_ShouwDrawHud)
	
	concommand.Add("+DSA_MENU", DSA_ShowMenu)
	concommand.Add("-DSA_MENU", DSA_HideMenu)
	
	--RunconsoleCommand("bind x +DSA_MENU")
	
	usermessage.Hook("DSA_PLY_RANK", DSA_PLY_RANK)
	
	DSA_INIT = true
--usermessage.Hook("KEV_RANK", KEV_RANK)
end

usermessage.Hook("DSA_Init", DSA_Initialize)